<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Travailler
 *
 * @ORM\Table(name="travailler")
 * @ORM\Entity
 */
class Travailler
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var datetime $jjmmaa
     *
     * @ORM\Column(name="jJMMAA", type="datetime", nullable=false)
     */
    private $jjmmaa;

    /**
     * @var string $trarole
     *
     * @ORM\Column(name="traRole", type="string", length=11, nullable=true)
     */
    private $trarole;

    /**
     * @var Visiteur
     *
     * @ORM\OneToOne(targetEntity="Visiteur")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="visMatricule", referencedColumnName="visMatricule", unique=true)
     * })
     */
    private $vismatricule;

    /**
     * @var Region
     *
     * @ORM\OneToOne(targetEntity="Region")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="regCode", referencedColumnName="regCode", unique=true)
     * })
     */
    private $regcode;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set jjmmaa
     *
     * @param datetime $jjmmaa
     * @return Travailler
     */
    public function setJjmmaa($jjmmaa)
    {
        $this->jjmmaa = $jjmmaa;
        return $this;
    }

    /**
     * Get jjmmaa
     *
     * @return datetime 
     */
    public function getJjmmaa()
    {
        return $this->jjmmaa;
    }

    /**
     * Set trarole
     *
     * @param string $trarole
     * @return Travailler
     */
    public function setTrarole($trarole)
    {
        $this->trarole = $trarole;
        return $this;
    }

    /**
     * Get trarole
     *
     * @return string 
     */
    public function getTrarole()
    {
        return $this->trarole;
    }

    /**
     * Set vismatricule
     *
     * @param Visiteur $vismatricule
     * @return Travailler
     */
    public function setVismatricule(\Visiteur $vismatricule = null)
    {
        $this->vismatricule = $vismatricule;
        return $this;
    }

    /**
     * Get vismatricule
     *
     * @return Visiteur 
     */
    public function getVismatricule()
    {
        return $this->vismatricule;
    }

    /**
     * Set regcode
     *
     * @param Region $regcode
     * @return Travailler
     */
    public function setRegcode(\Region $regcode = null)
    {
        $this->regcode = $regcode;
        return $this;
    }

    /**
     * Get regcode
     *
     * @return Region 
     */
    public function getRegcode()
    {
        return $this->regcode;
    }
}